//对外暴露的常路由constantRouter
export const constantRouter = [
  //登录页面路由
  {
    path: '/login',
    component: import('@/views/login/index.vue'),
    name: 'login',
  },
  // 登录成功之后展示数据的路由
  {
    path: '/',
    component: import('@/views/home/index.vue'),
    name: 'layout',
  },
  //404
  {
    path: '/404',
    component: import('@/views/404/index.vue'),
    name: '404',
  },
  //重定向
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any',
  },
]
